package com.ruoyi.project.game.tag.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 游戏标签对象 tag
 * 
 * @author shixiangwen
 * @date 2020-02-11
 */
public class Tag extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 标签id */
	private Long id;

	/** 标签 */
	@Excel(name = "标签")
	private String name;

	/** 颜色 */
	@Excel(name = "颜色")
	private String color;

	/** 分类 */
	@Excel(name = "分类")
	private Long category;

	private boolean flag;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getColor() {
		return color;
	}

	public void setCategory(Long category) {
		this.category = category;
	}

	public Long getCategory() {
		return category;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName()).append("color", getColor()).append("category", getCategory())
				.append("createTime", getCreateTime()).append("createBy", getCreateBy()).append("updateTime", getUpdateTime()).append("updateBy", getUpdateBy()).toString();
	}
}
